<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('feedback/verify', 'index/feedback/verify');
Route::post('feedback/add', 'index/feedback/add');
Route::get('health/check', 'index/Health/check');
Route::get('permission/closed', 'index/permission/closed');
Route::get('permission/404', 'index/permission/notFound');
Route::get('permission/500', 'index/permission/systemError');

Route::get('/', 'index/Article/index');
Route::get('404', 'index/Common/notFound');
Route::get('401', 'index/Common/notAuth');
Route::get('verify', 'index/Common/verify');
Route::post('feedback', 'index/Article/feedback');
Route::get('download','index/Article/download');
Route::post('compare','index/Article/compare');
Route::post('export','index/Article/export');
Route::get('search','index/Article/search');

// 会员
Route::get('user/login','user/Login/login');
Route::post('user/login','user/Login/doLogin');
Route::post('user/logout','user/User/doLogout');
Route::get('user/forgot','user/Login/forgotPwd');
Route::post('user/forgot','user/Login/dpForgotPwd');
Route::get('user/register','user/Login/register');
Route::post('user/register','user/Login/doRegister');


Route::post('compare','article/compare');
// 搜索
Route::get('search','article/search');
// 下载
Route::get('article/download','article/download');
// 栏目
Route::get('<uri>/p/<page>', 'article/lists')->pattern(['uri' => '[\s\w\/-]+', 'page' => '\d+']);
// 详细
Route::get('<uri>/<articleId>', 'article/view')->pattern(['uri' => '[\s\w\/-]+', 'articleId' => '\d+']);
// 封面
Route::get('<uri>', 'article/cover')->pattern(['uri' => '[\s\w\/-]+']);
